/* ENESIM - Direct Rendering Library
 * Copyright (C) 2013 Jorge Luis Zapata
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library.
 * If not, see <http://www.gnu.org/licenses/>.
 */
#ifndef _EINA_EXTRA_ORDERED_HASH_H_
#define _EINA_EXTRA_ORDERED_HASH_H_

typedef struct _Eina_Extra_Ordered_Hash
{
	Eina_List *order;
	Eina_Hash *hash;
} Eina_Extra_Ordered_Hash;

EAPI Eina_Extra_Ordered_Hash * eina_extra_ordered_hash_new(Eina_Free_Cb cb);
EAPI void eina_extra_ordered_hash_free(Eina_Extra_Ordered_Hash *thiz);
EAPI int eina_extra_ordered_hash_count(Eina_Extra_Ordered_Hash *thiz);
EAPI void * eina_extra_ordered_hash_nth_get(Eina_Extra_Ordered_Hash *thiz, int nth);
EAPI void * eina_extra_ordered_hash_find(Eina_Extra_Ordered_Hash *thiz, const char *key);
EAPI void eina_extra_ordered_hash_add(Eina_Extra_Ordered_Hash *thiz, const char *name, void *data);
EAPI void eina_extra_ordered_hash_del(Eina_Extra_Ordered_Hash *thiz, const char *name, void *data);

#endif
